<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Controller
 *
 * @author nstevens
 */
class commonController {

    public $model;

    public function __construct($model) {
        $this->model = $model;
    }

    public function getHelpPageRequest(){
        $this->model->string = $this->model->getHelpPage();
    }
    public function processAddNotesRequest() {
        $url = $this->model->addNotes();
        if ($url) {
            echo header($url);
        } else {
            echo "error";
        }
    }
    
    public function processTaskSubmitRequest(){
        $url = $this->model->processTaskSubmit();
        if ($url) {
            echo header($url);
        } else {
            echo "error";
        }
    }

    public function processSubtaskSubmitRequest(){
        $url = $this->model->processSubtaskSubmit();
        if ($url) {
            echo header($url);
        } else {
            echo "error";
        }
    }
}

?>
